using Hhmocon.Mes.DataBase;
using System;

namespace Hhmocon.Mes.Repository.Domain
{
    /// <summary>
    /// </summary>
    /// <summary>
    /// 机械手设备
    /// </summary>
    [Table(TableName="robotic_equipment",KeyName= "sys_equipment_id", IsIdentity = false)]
    public class robotic_equipment
    {

        /// <summary>
        /// 机器序列号
        /// </summary>
        public string sys_equipment_id { get; set; }

        /// <summary>
        /// 系统版本
        /// </summary>
        public string sys_system_version { get; set; }

        /// <summary>
        /// 生产厂家
        /// </summary>
        public string sys_manufacturer { get; set; }

        /// <summary>
        /// 当前产品的单次时间
        /// </summary>
        public int time_single_product { get; set; }

        /// <summary>
        /// 开机时间
        /// </summary>
        public int time_boot { get; set; }

        /// <summary>
        /// 运行时间
        /// </summary>
        public int time_runtime { get; set; }

        /// <summary>
        /// 设备总开机时间
        /// </summary>
        public int time_tolal_boot { get; set; }

        /// <summary>
        /// 总运行时间
        /// </summary>
        public int time_tolal_runtime { get; set; }

        /// <summary>
        /// 运行状态
        ///0x0000	待机，不可启动
        ///0x0001	待机，可启动
        ///0x0002	运行中
        ///0x0003	暂停中
        ///0x0004	故障
        ///0x0005	复位中
        ///0x0006	回零中   
        /// </summary>
        public string state_operating { get; set; }

        /// <summary>
        ///  当前报警编号
        ///0x0000		无报警	
        ///0x0001		机械手急停
        ///x0030~0x0035	X、Y、Z、O、U、V轴超出最大硬限位
        ///0x0036~0x003B	X2、Y2、Z2、O2、U2、V2轴超出最大硬限位
        ///0x0050~0x0055	X、Y、Z、O、U、V轴超出最小硬限位
        ///0x0056~0x005B	X2、Y2、Z2、O2、U2、V2轴超出最小硬限位
        ///0x0070~0x0075	X、Y、Z、O、U、V轴超出安全区
        ///0x0076~0x007B	X2、Y2、Z2、O2、U2、V2轴超出安全区
        ///0x0090~0x0095	X、Y、Z、O、U、V轴超出软限位
        ///0x0096~0x009B	X2、Y2、Z2、O2、U2、V2轴超出软限位
        ///0x00B0~0x00B5	X、Y、Z、O、U、V轴驱动器报警
        ///0x00B6~0x00BB	X2、Y2、Z2、O2、U2、V2轴驱动器报警
        /// </summary>
        public string state_alarm_code { get; set; }

        /// <summary>
        /// 当前运行程序
        /// </summary>
        public string run_program { get; set; }

        /// <summary>
        /// 当前产量
        /// </summary>
        public int run_production { get; set; }

        /// <summary>
        /// 目标产量
        /// </summary>
        public int run_producton_target { get; set; }

        /// <summary>
        /// 总产量
        /// </summary>
        public int run_production_total { get; set; }

        /// <summary>
        /// 次品产量
        /// </summary>
        public int run_production_defective { get; set; }

        /// <summary>
        /// delete_mark
        /// </summary>
        public int delete_mark { get; set; }

        /// <summary>
        /// create_time
        /// </summary>
        public DateTime create_time { get; set; }

        /// <summary>
        /// create_by
        /// </summary>
        public string create_by { get; set; }

        /// <summary>
        /// create_by_name
        /// </summary>
        public string create_by_name { get; set; }

        /// <summary>
        /// modified_time
        /// </summary>
        public DateTime modified_time { get; set; }

        /// <summary>
        /// modified_by
        /// </summary>
        public string modified_by { get; set; }

        /// <summary>
        /// modified_by_name
        /// </summary>
        public string modified_by_name { get; set; }
    }
}
